﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace XYZshell.Game.CardGameEngine
{
	[Serializable]
	public  class SimplePlalyer:Player
	{
		public SimplePlalyer()
			: base()
		{
			
		}
		public SimpleDesktop Desktop
		{
			get
			{
				return (SimpleDesktop)Desktops[0];
			}
			set
			{
				if (Desktops.Count == 0)
					Desktops.Add( value );
				Desktops[0] = value;
			}
		}
		/// <summary>
		/// 摸牌
		/// </summary>
		/// <param name="deck"></param>
		public void Siphon( )
		{
			Card card= Desktop.Deck.Siphon();
			Hand.Cards.Add( card );
		}

		/// <summary>
		/// 出牌
		/// </summary>
		/// <param name="deck"></param>
		public void Deal( Card card )
		{
			Hand.Cards.Move( Desktop.Area.Cards, card );
		}
	}
}
